package com.wk.wanjetpack

import android.app.Application
import com.scwang.smart.refresh.header.MaterialHeader
import com.scwang.smart.refresh.layout.SmartRefreshLayout
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
class BaseApplication : Application() {

    companion object{
        lateinit var ins : BaseApplication
    }

    init {
        ins = this
        SmartRefreshLayout.setDefaultRefreshHeaderCreator { context, layout ->
            layout.setPrimaryColorsId(R.color.colorTrans,R.color.textColorGray)
            MaterialHeader(context)
        }
    }
}